package Test;

class Persons{
    String name;
    int age;

    public Persons(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("Person构造方法被调用");
    }

    {
        System.out.println("Person实例代码块被调用");
    }

    static {
        System.out.println("Person静态代码块被调用");
    }
}

class Students extends Persons{
    public Students(String name, int age) {
        super(name, age);
        System.out.println("Students构造方法被调用");
    }

    {
        System.out.println("Students实例代码块被调用");
    }

    static {
        System.out.println("Students静态代码块被调用");
    }

}

public class job {
    public static void main(String[] args) {
        Students students = new Students("小罗",18);
        System.out.println("=======================");
        Students students2 = new Students("小罗",18);
    }
}
